package com.zhang.principal.impl;

import com.zhang.principal.UserInfo;

import javax.annotation.sql.DataSourceDefinition;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;


public class SimpleUserInfo implements UserInfo {


    private String id;

    private Set<String> Permissions;

    private Set<String> roles;

    private String status;

    private Map<String,Object> externInfo = new HashMap<>();

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Set<String> getPermissions() {
        return Permissions;
    }

    public void setPermissions(Set<String> permissions) {
        Permissions = permissions;
    }

    @Override
    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    @Override
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Map<String, Object> getExternInfo() {
        return externInfo;
    }

    public void setExternInfo(Map<String, Object> externInfo) {
        this.externInfo = externInfo;
    }
}



